//
//  main.cpp
//  phi_four
//
//  Created by Snir Gazit on 3/6/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#include <iostream>
#include "Simulation.h"
#include "HelpLibs/def.h"
#include "HelpLibs/InputFile.h"

using namespace std;

void run(string inFile) {
	// Read File
	InputFile inPutFile(inFile);
	inPutFile.readFile();
	// Simulate
	Simulation sim;
	sim.init(inPutFile.getQmcParams());
	sim.adjustCutOff();
	sim.run();
	sim.dump();
}

int main(int argc, const char * argv[]) {
	if (argc == 1)
		exit(-1);
	string inFile(argv[1]);
	run(inFile);
}
